﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CustomSetting.aspx.cs" Inherits="CRM_CustomSetting" %>

<html>
<head>
    <title>51aspnet.com协同办公服务平台</title>
    <link href="../Style/Style.css" type="text/css" rel="STYLESHEET">
</head>

<script language="JavaScript">
		  		  var a;    
          function CheckValuePiece(){
           if(window.document.form1.GoPage.value == "")
            {
              alert("请输入跳转的页码！");
              window.document.form1.GoPage.focus();
              return false; 
            }
           return true;
           }
           function CheckAll(){            
            if(a==1)
            {
            for(var i=0;i<window.document.form1.elements.length;i++)
               {                
                  var e = form1.elements[i];
                  e.checked =false;                  
               }
               a=0;
           }       
           else
           {
                for(var i=0;i<window.document.form1.elements.length;i++)
               {                
                  var e = form1.elements[i];
                  e.checked =true;                  
               }
               a=1;
           }     
         }
           function CheckDel(){
             var number=0;
             for(var i=0;i<window.document.form1.elements.length;i++)
               {
                  var e = form1.elements[i];
                  if (e.Name != "CheckBoxAll")
                  {
                    if(e.checked==true)
                    {
                        number=number+1;
                    }
                  }
               }
               if(number==0)
                {
                  alert("请选择需要删除的项！");
                  return false;
                }
               if (window.confirm("你确认删除吗？"))
				{
				  return true;
				}
				else
				{
				  return false;
				}
             } 
             
             function CheckDel1(){
             var number=0;
             for(var i=0;i<window.document.form1.elements.length;i++)
               {
                  var e = form1.elements[i];
                  if (e.Name != "CheckBoxAll")
                  {
                    if(e.checked==true)
                    {
                        number=number+1;
                    }
                  }
               }
               if(number==0)
                {
                  alert("请选择需要转移的客户数据！");
                  return false;
                }
               if (window.confirm("你确认将选中客户转移给选定的业务员吗？"))
				{
				  return true;
				}
				else
				{
				  return false;
				}
             } 
             
             function CheckModify(){
             var Modifynumber=0;
             for(var i=0;i<window.document.form1.elements.length;i++)
               {
                  var e = form1.elements[i];
                  if (e.Name != "CheckBoxAll")
                  {
                    if(e.checked==true)
                    {
                        Modifynumber=Modifynumber+1;
                    }
                  }
               }
               if(Modifynumber==0)
                {
                  alert("请至少选择一项！");
                  return false;
                }
                if(Modifynumber>1)
                {
                  alert("只允许选择一项！");
                  return false;
                }
               
				  return true;							
             }
             
             
             
</script>

<body>
    <form id="form1" runat="server">
    <div>
        <table style="width: 100%" border="0" cellpadding="0" cellspacing="0">
            <tr style="background-image: url(../images/bg_header.gif); background-repeat: repeat-x;
                height: 47px;">
                <td colspan="2">
                    <span style="float: left; background-image: url(../images/main_hl2.gif); width: 15px;
                        background-repeat: no-repeat; height: 47px"></span><span style="padding-right: 10px;
                            padding-left: 10px; float: left; background-image: url(../images/main_hb.gif);
                            padding-bottom: 10px; color: white; padding-top: 10px; background-repeat: repeat-x;
                            height: 47px; text-align: center;">客户参数设置</span><span style="float: left; background-image: url(../images/main_hr.gif);
                                width: 60px; background-repeat: no-repeat; height: 47px"></span>
                </td>
            </tr>
            <tr>
                <td valign="middle" style="border-bottom: #006633 1px dashed; height: 30px;">
                    &nbsp;<img src="../images/BanKuaiJianTou.gif" />
                    <a class="hei" href="../Main/MyDesk.aspx">桌面</a>&nbsp;>>&nbsp;客户管理&nbsp;>>&nbsp;客户参数设置
                </td>
                <td align="right" valign="middle" style="border-bottom: #006633 1px dashed; height: 30px;">
                    &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
                </td>
            </tr>
        </table>
    </div>
    <table style="width: 100%">
        <tr>
            <td>
                <asp:GridView ID="GVData" runat="server" Width="100%" OnRowCancelingEdit="GVData_RowCancelingEdit"
                    OnRowUpdating="GVData_RowUpdating" OnRowEditing="GVData_RowEditing" OnRowDeleting="GVData_RowDeleting"
                    OnRowCommand="GVData_RowCommand" PageSize="5" OnRowDataBound="GVData_RowDataBound"
                    BorderWidth="1px" BorderStyle="Solid" AutoGenerateColumns="False" AllowSorting="True">
                    <PagerSettings Mode="NumericFirstLast" />
                    <PagerStyle BackColor="LightSteelBlue" HorizontalAlign="Right" />
                    <HeaderStyle BackColor="#006599" Font-Size="12px" ForeColor="White" Height="20px" />
                    <Columns>
                        <asp:BoundField DataField="CanShuName" HeaderText="参数内容"></asp:BoundField>
                        <asp:CommandField ShowEditButton="True">
                            <ItemStyle ForeColor="Blue" />
                        </asp:CommandField>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <asp:LinkButton ID="LinkButton4" runat="server" CommandName="Delete" CommandArgument='<%#DataBinder.Eval(Container.DataItem, "ID")%>'
                                    Font-Underline="True" ForeColor="Blue">移除</asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <RowStyle HorizontalAlign="Center" Height="20px" />
                    <EmptyDataTemplate>
                        &nbsp; 无相关数据！
                    </EmptyDataTemplate>
                </asp:GridView>
                <hr style="color: #006633; height: 1px;">
                &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;选择类别：<asp:DropDownList ID="DropDownList1" runat="server"
                    AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
                    <asp:ListItem Value="ERPCustomInfo">客户信息</asp:ListItem>
                    <asp:ListItem Value="ERPLinkMan">客户联系人</asp:ListItem>
                    <asp:ListItem Value="ERPLinkLog">联系记录</asp:ListItem>
                    <asp:ListItem Value="ERPCustomNeed">需求记录</asp:ListItem>
                    <asp:ListItem Value="ERPBaoJia">报价记录</asp:ListItem>
                    <asp:ListItem Value="ERPCustomFuWu">服务记录</asp:ListItem>
                    <asp:ListItem Value="ERPCustomHuiFang">回访记录</asp:ListItem>
                    <asp:ListItem Value="ERPTouSu">投诉记录</asp:ListItem>
                    <asp:ListItem Value="ERPSongYang">送样记录</asp:ListItem>
                </asp:DropDownList>
                选择参数：<asp:DropDownList ID="DropDownList2" runat="server">
                </asp:DropDownList>
                <asp:ImageButton ID="ImageButton4" runat="server" ImageAlign="AbsMiddle" ImageUrl="../images/Button/BtnSerch.jpg"
                    OnClick="ImageButton4_Click" />
                &nbsp; &nbsp;&nbsp; &nbsp; 添加参数内容：<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/images/Button/Submit.jpg"
                    OnClick="ImageButton1_Click" />&nbsp;
                <hr style="color: #006633; height: 1px;">
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
